import request from '@/utils/request'

export function getInterfaces(query) {
  return request({
    url: '/program/interface/getList',
    method: 'post',
    data: query
  })
}

export function getInterface(id) {
  return request({
    url: '/program/interface/getDetail',
    method: 'post',
    data: { id }
  })
}

export function saveInterface(id) {
  return request({
    url: '/program/interface/save',
    method: 'post',
    data: id
  })
}

export function removeInterfaceByID(id) {
  return request({
    url: '/program/interface/delete',
    method: 'post',
    data: id
  })
}

export function changeInterfaceStatusByID(id) {
  return request({
    url: '/program/interface/change-status',
    method: 'post',
    data: { id }
  })
}

